package com.itheima.stock.mapper;

import com.itheima.stock.pojo.StockBusiness;
import com.itheima.stock.pojo.StockCodeLenovo;
import com.itheima.stock.pojo.StockDescribe;

import java.util.List;

/**
 * @author 85190
 * @description 针对表【stock_business(主营业务表)】的数据库操作Mapper
 * @createDate 2022-05-23 15:58:16
 * @Entity com.itheima.stock.pojo.StockBusiness
 */
public interface StockBusinessMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBusiness record);

    int insertSelective(StockBusiness record);

    StockBusiness selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBusiness record);

    int updateByPrimaryKey(StockBusiness record);
    // 查询所有股票业务
    List<StockBusiness> getAll();

    List<String> getStockIds();

    List<StockCodeLenovo> getStockName(String searchStr);

    StockDescribe getDescribe(String code);
}
